package com.xdwanj.volleytest.util;

import java.nio.charset.StandardCharsets;

/**
 * 编码工具
 */
public class EncodedUtils {
    public static String IsoToUtf8(String str) {
        return new String(str.getBytes(StandardCharsets.ISO_8859_1), StandardCharsets.UTF_8);
    }

    public static String Utf8ToIso(String str) {
        return new String(str.getBytes(StandardCharsets.UTF_8), StandardCharsets.ISO_8859_1);
    }
}
